package com.ztsoft.user.service.dynamic;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ztsoft.user.pojo.entity.dynamic.DynamicTable;
import com.ztsoft.user.pojo.vo.PageData;
import com.ztsoft.user.pojo.vo.PageInfo;
import com.ztsoft.user.pojo.vo.ResultData;
import com.ztsoft.user.pojo.vo.dynamic.AdvancedSearchVo;
import com.ztsoft.user.pojo.vo.dynamic.SearchItemVo;
import com.ztsoft.user.utils.Result;

import java.util.List;

public interface DynamicTableService extends IService<DynamicTable> {

    ResultData queryTableByTableCode(String tableCode);

    List<String> getAllTableCode();

    PageData queryDataByTableCode(String tableCode, PageInfo pageInfo, SearchItemVo searchItemVo);

    List<AdvancedSearchVo> querySearchByTableCode(String tableCode);

    void saveDynamicTable(DynamicTable dynamicTable);

    ///////////////////////////////////////////改造/////////////////////////////////////////////////
    Result<Object> queryDataByPage(DynamicTable dynamicTable, Integer currentPage, Integer pageSize);

}
